From: Alex Ivanov Date: Wed, 15 Nov 2017 13:08:00 +0000 (+0000) Subject: wayland: Don't provide gsetting if dconf is not available X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~38^2~151 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=2b6f3f7867d297e44c35688e0407cfa6c91cc222;p=gtk%2B3.0.git wayland: Don't provide gsetting if dconf is not available This makes gtk+ fall back to reading ~/.config/gtk-3.0/settings.ini on systems with Wayland, but without dconf (do those exist?). https://bugzilla.gnome.org/show_bug.cgi?id=790201 --- diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index 9af09d4d18..125b4fa102 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -657,6 +657,9 @@ gdk_wayland_screen_get_setting (GdkScreen *screen, g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE); + if (g_settings_schema_source_get_default () == NULL) + return FALSE; + entry = find_translation_entry_by_setting (name); if (entry != NULL) {